<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 权限标签模型
 * author : hxq
 * date : 2017-10-26
 */
class Tags extends Model
{
    //
    protected $table = 'tags';

    public $timestamps = false;

    protected $fillable = [
        'shop_id',
        'title',
    ];

    //标签对应菜单
    public function tag_menus()
    {
        return $this->hasMany('App\\Models\\TagMenu', 'tag_id', 'id');
    }
}
